package com.dlnu.service;

import com.github.pagehelper.PageInfo;
import com.dlnu.bean.DormitoryStudent;

import java.util.Map;

public interface DormitoryStudentService {

    int create(DormitoryStudent dormitoryStudent);

    int delete(String ids);

    int delete(Integer id);

    int update(DormitoryStudent dormitoryStudent);

    int updateSelective(DormitoryStudent dormitoryStudent);

    PageInfo<DormitoryStudent> query(DormitoryStudent dormitoryStudent);

    DormitoryStudent detail(Integer id);

    int count(DormitoryStudent dormitoryStudent);

    int select_dormitory_submit(Integer studentId, Integer dormitoryId, Integer bedId);

    int countByBuildingId(Integer buildingId);

    Map<String,Object> queryStudentByBedId(Integer bedId);
}
